package o2o.config.dao;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.sql.Connection;
import java.sql.SQLException;

@Component
public class UserDaoSqlServer extends DaoImpl {

    @Resource(name = "jdbcTemplate")
    private JdbcTemplate userJdbcTemplate;


    public Connection getConnection() throws SQLException {
        return this.userJdbcTemplate.getDataSource().getConnection();
    }

}
